<%@page import="java.util.ArrayList"%>
<%@include file="/WEB-INF/templates/configuration.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="windows-1252"%>

<h2>${pageTitle}</h2>
<c:if test="${not empty foutMelding}">
    <!-- Mochten er foutmeldingen zijn, dan worden ze hier getoond -->
    <p>${foutMelding}</p>
</c:if>
<p>
<form name="f1" id="nieuweGebruiker" action="register" method="post">
    <ul>
    <c:forEach var="current" items="${validationError}">
        <li>
            <td><font color="#FF0000" size="2"><c:out value="${current}"/></font><td>
        </li>
    </c:forEach>
    </ul>
    
    <table border="0">

        <tr>
            <td><label for="username">Username*</label></td>
            <td><input type="textfield" id="username" name="username" value="${userFail.userName}"></input></td>
        </tr>
        <tr>
            <td><label for="password">Password*</label></td>
            <td><input type="password" id="password" name="password" value="${userFail.password}"></input></td>
        </tr>
        <tr>
            <td><label for="password-repeat">Repeat Password*</label></td>
            <td><input type="password" id="password2" name="password2" value="${userFail.password2}"></input></td>
        </tr>
        <tr>
            <td><label for="firstname">First Name*</label></td>
            <td><input type="textfield" id="firstname" name="firstname" value="${userFail.userFirstName}"></input></td>
        </tr>
        <tr>
            <td><label for="lastname">Last Name*</label></td>
            <td><input type="textfield" id="lastname" name="lastname" value="${userFail.userLastName}"></input></td>
        </tr>
        <tr>
            <td><label for="email">E-mail*</label></td>
            <td><input type="textfield" id="email" name="email" value="${userFail.userEmail}"></input></td>
        </tr>
        <tr>
            <td><label for="landOfOrigin">Nationality*</label></td>
            <td><input type="textfield" id="landOfOrigin" name="landOfOrigin" value="${userFail.userLandOfOrigin}"></input></td>
        </tr>
        <tr>
            <td><label for="profilepicture">Enter profile picture url</label></td>
            <td><input type="textfield" id="profilepicture" name="profilepicture" value="${userFail.profilepicture}"></input></td>
        </tr>
        <input type="hidden" name="usertype" id="usertype" value="1"></input>
        <tr>
            <td><label for="asterix">Everything marked with a "*" MUST be filled in to register.</label></td>
        </tr>
    </table>
</p>
<p>
    <input class="submit" type="submit" value="Add">
</p>
</form>